cmake_minimum_required(VERSION 3.5)

project(armbot)

# 找到 ament_cmake 和其他 ROS 2 依赖
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)

# 安装相关文件
install(DIRECTORY launch
  DESTINATION share/${PROJECT_NAME}/
)

install(DIRECTORY config
  DESTINATION share/${PROJECT_NAME}/
)

install(DIRECTORY urdf
  DESTINATION share/${PROJECT_NAME}/
)

install(DIRECTORY meshes
  DESTINATION share/${PROJECT_NAME}/
)

# 最后调用 ament_package() 来处理 ROS 2 包的构建
ament_package()
